#ifndef USER_GlOBAL_H
#define USER_GlOBAL_H
//user_global defines ()
#include "gd32f30x.h"
#include<math.h>

typedef unsigned char    U8;
typedef unsigned short    U16;
typedef unsigned long    U32;

#ifndef   bit
  #define bit  unsigned char
#endif
#ifndef   uchar
  #define uchar  unsigned char
#endif
#ifndef   ushort
  #define ushort unsigned short
#endif
#ifndef   ulong
  #define ulong unsigned long
#endif
#ifndef   uint
  #define uint unsigned long
#endif

#define MSB        1
#define LSB        0

typedef union tagUU16
{
    U8 UU8[2];
    U16 UU16;
} UU16;

#endif // CONFIG_H
